package com.zshan.clinic.database.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class OrderExamExecExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public OrderExamExecExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andExecIdIsNull() {
            addCriterion("exec_id is null");
            return (Criteria) this;
        }

        public Criteria andExecIdIsNotNull() {
            addCriterion("exec_id is not null");
            return (Criteria) this;
        }

        public Criteria andExecIdEqualTo(Long value) {
            addCriterion("exec_id =", value, "execId");
            return (Criteria) this;
        }

        public Criteria andExecIdNotEqualTo(Long value) {
            addCriterion("exec_id <>", value, "execId");
            return (Criteria) this;
        }

        public Criteria andExecIdGreaterThan(Long value) {
            addCriterion("exec_id >", value, "execId");
            return (Criteria) this;
        }

        public Criteria andExecIdGreaterThanOrEqualTo(Long value) {
            addCriterion("exec_id >=", value, "execId");
            return (Criteria) this;
        }

        public Criteria andExecIdLessThan(Long value) {
            addCriterion("exec_id <", value, "execId");
            return (Criteria) this;
        }

        public Criteria andExecIdLessThanOrEqualTo(Long value) {
            addCriterion("exec_id <=", value, "execId");
            return (Criteria) this;
        }

        public Criteria andExecIdIn(List<Long> values) {
            addCriterion("exec_id in", values, "execId");
            return (Criteria) this;
        }

        public Criteria andExecIdNotIn(List<Long> values) {
            addCriterion("exec_id not in", values, "execId");
            return (Criteria) this;
        }

        public Criteria andExecIdBetween(Long value1, Long value2) {
            addCriterion("exec_id between", value1, value2, "execId");
            return (Criteria) this;
        }

        public Criteria andExecIdNotBetween(Long value1, Long value2) {
            addCriterion("exec_id not between", value1, value2, "execId");
            return (Criteria) this;
        }

        public Criteria andOrderIdIsNull() {
            addCriterion("order_id is null");
            return (Criteria) this;
        }

        public Criteria andOrderIdIsNotNull() {
            addCriterion("order_id is not null");
            return (Criteria) this;
        }

        public Criteria andOrderIdEqualTo(Long value) {
            addCriterion("order_id =", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotEqualTo(Long value) {
            addCriterion("order_id <>", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdGreaterThan(Long value) {
            addCriterion("order_id >", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdGreaterThanOrEqualTo(Long value) {
            addCriterion("order_id >=", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdLessThan(Long value) {
            addCriterion("order_id <", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdLessThanOrEqualTo(Long value) {
            addCriterion("order_id <=", value, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdIn(List<Long> values) {
            addCriterion("order_id in", values, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotIn(List<Long> values) {
            addCriterion("order_id not in", values, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdBetween(Long value1, Long value2) {
            addCriterion("order_id between", value1, value2, "orderId");
            return (Criteria) this;
        }

        public Criteria andOrderIdNotBetween(Long value1, Long value2) {
            addCriterion("order_id not between", value1, value2, "orderId");
            return (Criteria) this;
        }

        public Criteria andCurrentTimesIsNull() {
            addCriterion("current_times is null");
            return (Criteria) this;
        }

        public Criteria andCurrentTimesIsNotNull() {
            addCriterion("current_times is not null");
            return (Criteria) this;
        }

        public Criteria andCurrentTimesEqualTo(Integer value) {
            addCriterion("current_times =", value, "currentTimes");
            return (Criteria) this;
        }

        public Criteria andCurrentTimesNotEqualTo(Integer value) {
            addCriterion("current_times <>", value, "currentTimes");
            return (Criteria) this;
        }

        public Criteria andCurrentTimesGreaterThan(Integer value) {
            addCriterion("current_times >", value, "currentTimes");
            return (Criteria) this;
        }

        public Criteria andCurrentTimesGreaterThanOrEqualTo(Integer value) {
            addCriterion("current_times >=", value, "currentTimes");
            return (Criteria) this;
        }

        public Criteria andCurrentTimesLessThan(Integer value) {
            addCriterion("current_times <", value, "currentTimes");
            return (Criteria) this;
        }

        public Criteria andCurrentTimesLessThanOrEqualTo(Integer value) {
            addCriterion("current_times <=", value, "currentTimes");
            return (Criteria) this;
        }

        public Criteria andCurrentTimesIn(List<Integer> values) {
            addCriterion("current_times in", values, "currentTimes");
            return (Criteria) this;
        }

        public Criteria andCurrentTimesNotIn(List<Integer> values) {
            addCriterion("current_times not in", values, "currentTimes");
            return (Criteria) this;
        }

        public Criteria andCurrentTimesBetween(Integer value1, Integer value2) {
            addCriterion("current_times between", value1, value2, "currentTimes");
            return (Criteria) this;
        }

        public Criteria andCurrentTimesNotBetween(Integer value1, Integer value2) {
            addCriterion("current_times not between", value1, value2, "currentTimes");
            return (Criteria) this;
        }

        public Criteria andExamDescIsNull() {
            addCriterion("exam_desc is null");
            return (Criteria) this;
        }

        public Criteria andExamDescIsNotNull() {
            addCriterion("exam_desc is not null");
            return (Criteria) this;
        }

        public Criteria andExamDescEqualTo(String value) {
            addCriterion("exam_desc =", value, "examDesc");
            return (Criteria) this;
        }

        public Criteria andExamDescNotEqualTo(String value) {
            addCriterion("exam_desc <>", value, "examDesc");
            return (Criteria) this;
        }

        public Criteria andExamDescGreaterThan(String value) {
            addCriterion("exam_desc >", value, "examDesc");
            return (Criteria) this;
        }

        public Criteria andExamDescGreaterThanOrEqualTo(String value) {
            addCriterion("exam_desc >=", value, "examDesc");
            return (Criteria) this;
        }

        public Criteria andExamDescLessThan(String value) {
            addCriterion("exam_desc <", value, "examDesc");
            return (Criteria) this;
        }

        public Criteria andExamDescLessThanOrEqualTo(String value) {
            addCriterion("exam_desc <=", value, "examDesc");
            return (Criteria) this;
        }

        public Criteria andExamDescLike(String value) {
            addCriterion("exam_desc like", value, "examDesc");
            return (Criteria) this;
        }

        public Criteria andExamDescNotLike(String value) {
            addCriterion("exam_desc not like", value, "examDesc");
            return (Criteria) this;
        }

        public Criteria andExamDescIn(List<String> values) {
            addCriterion("exam_desc in", values, "examDesc");
            return (Criteria) this;
        }

        public Criteria andExamDescNotIn(List<String> values) {
            addCriterion("exam_desc not in", values, "examDesc");
            return (Criteria) this;
        }

        public Criteria andExamDescBetween(String value1, String value2) {
            addCriterion("exam_desc between", value1, value2, "examDesc");
            return (Criteria) this;
        }

        public Criteria andExamDescNotBetween(String value1, String value2) {
            addCriterion("exam_desc not between", value1, value2, "examDesc");
            return (Criteria) this;
        }

        public Criteria andDiagnosisFlagIsNull() {
            addCriterion("diagnosis_flag is null");
            return (Criteria) this;
        }

        public Criteria andDiagnosisFlagIsNotNull() {
            addCriterion("diagnosis_flag is not null");
            return (Criteria) this;
        }

        public Criteria andDiagnosisFlagEqualTo(String value) {
            addCriterion("diagnosis_flag =", value, "diagnosisFlag");
            return (Criteria) this;
        }

        public Criteria andDiagnosisFlagNotEqualTo(String value) {
            addCriterion("diagnosis_flag <>", value, "diagnosisFlag");
            return (Criteria) this;
        }

        public Criteria andDiagnosisFlagGreaterThan(String value) {
            addCriterion("diagnosis_flag >", value, "diagnosisFlag");
            return (Criteria) this;
        }

        public Criteria andDiagnosisFlagGreaterThanOrEqualTo(String value) {
            addCriterion("diagnosis_flag >=", value, "diagnosisFlag");
            return (Criteria) this;
        }

        public Criteria andDiagnosisFlagLessThan(String value) {
            addCriterion("diagnosis_flag <", value, "diagnosisFlag");
            return (Criteria) this;
        }

        public Criteria andDiagnosisFlagLessThanOrEqualTo(String value) {
            addCriterion("diagnosis_flag <=", value, "diagnosisFlag");
            return (Criteria) this;
        }

        public Criteria andDiagnosisFlagLike(String value) {
            addCriterion("diagnosis_flag like", value, "diagnosisFlag");
            return (Criteria) this;
        }

        public Criteria andDiagnosisFlagNotLike(String value) {
            addCriterion("diagnosis_flag not like", value, "diagnosisFlag");
            return (Criteria) this;
        }

        public Criteria andDiagnosisFlagIn(List<String> values) {
            addCriterion("diagnosis_flag in", values, "diagnosisFlag");
            return (Criteria) this;
        }

        public Criteria andDiagnosisFlagNotIn(List<String> values) {
            addCriterion("diagnosis_flag not in", values, "diagnosisFlag");
            return (Criteria) this;
        }

        public Criteria andDiagnosisFlagBetween(String value1, String value2) {
            addCriterion("diagnosis_flag between", value1, value2, "diagnosisFlag");
            return (Criteria) this;
        }

        public Criteria andDiagnosisFlagNotBetween(String value1, String value2) {
            addCriterion("diagnosis_flag not between", value1, value2, "diagnosisFlag");
            return (Criteria) this;
        }

        public Criteria andDiagnosisContentIsNull() {
            addCriterion("diagnosis_content is null");
            return (Criteria) this;
        }

        public Criteria andDiagnosisContentIsNotNull() {
            addCriterion("diagnosis_content is not null");
            return (Criteria) this;
        }

        public Criteria andDiagnosisContentEqualTo(String value) {
            addCriterion("diagnosis_content =", value, "diagnosisContent");
            return (Criteria) this;
        }

        public Criteria andDiagnosisContentNotEqualTo(String value) {
            addCriterion("diagnosis_content <>", value, "diagnosisContent");
            return (Criteria) this;
        }

        public Criteria andDiagnosisContentGreaterThan(String value) {
            addCriterion("diagnosis_content >", value, "diagnosisContent");
            return (Criteria) this;
        }

        public Criteria andDiagnosisContentGreaterThanOrEqualTo(String value) {
            addCriterion("diagnosis_content >=", value, "diagnosisContent");
            return (Criteria) this;
        }

        public Criteria andDiagnosisContentLessThan(String value) {
            addCriterion("diagnosis_content <", value, "diagnosisContent");
            return (Criteria) this;
        }

        public Criteria andDiagnosisContentLessThanOrEqualTo(String value) {
            addCriterion("diagnosis_content <=", value, "diagnosisContent");
            return (Criteria) this;
        }

        public Criteria andDiagnosisContentLike(String value) {
            addCriterion("diagnosis_content like", value, "diagnosisContent");
            return (Criteria) this;
        }

        public Criteria andDiagnosisContentNotLike(String value) {
            addCriterion("diagnosis_content not like", value, "diagnosisContent");
            return (Criteria) this;
        }

        public Criteria andDiagnosisContentIn(List<String> values) {
            addCriterion("diagnosis_content in", values, "diagnosisContent");
            return (Criteria) this;
        }

        public Criteria andDiagnosisContentNotIn(List<String> values) {
            addCriterion("diagnosis_content not in", values, "diagnosisContent");
            return (Criteria) this;
        }

        public Criteria andDiagnosisContentBetween(String value1, String value2) {
            addCriterion("diagnosis_content between", value1, value2, "diagnosisContent");
            return (Criteria) this;
        }

        public Criteria andDiagnosisContentNotBetween(String value1, String value2) {
            addCriterion("diagnosis_content not between", value1, value2, "diagnosisContent");
            return (Criteria) this;
        }

        public Criteria andExamImageListIsNull() {
            addCriterion("exam_image_list is null");
            return (Criteria) this;
        }

        public Criteria andExamImageListIsNotNull() {
            addCriterion("exam_image_list is not null");
            return (Criteria) this;
        }

        public Criteria andExamImageListEqualTo(String value) {
            addCriterion("exam_image_list =", value, "examImageList");
            return (Criteria) this;
        }

        public Criteria andExamImageListNotEqualTo(String value) {
            addCriterion("exam_image_list <>", value, "examImageList");
            return (Criteria) this;
        }

        public Criteria andExamImageListGreaterThan(String value) {
            addCriterion("exam_image_list >", value, "examImageList");
            return (Criteria) this;
        }

        public Criteria andExamImageListGreaterThanOrEqualTo(String value) {
            addCriterion("exam_image_list >=", value, "examImageList");
            return (Criteria) this;
        }

        public Criteria andExamImageListLessThan(String value) {
            addCriterion("exam_image_list <", value, "examImageList");
            return (Criteria) this;
        }

        public Criteria andExamImageListLessThanOrEqualTo(String value) {
            addCriterion("exam_image_list <=", value, "examImageList");
            return (Criteria) this;
        }

        public Criteria andExamImageListLike(String value) {
            addCriterion("exam_image_list like", value, "examImageList");
            return (Criteria) this;
        }

        public Criteria andExamImageListNotLike(String value) {
            addCriterion("exam_image_list not like", value, "examImageList");
            return (Criteria) this;
        }

        public Criteria andExamImageListIn(List<String> values) {
            addCriterion("exam_image_list in", values, "examImageList");
            return (Criteria) this;
        }

        public Criteria andExamImageListNotIn(List<String> values) {
            addCriterion("exam_image_list not in", values, "examImageList");
            return (Criteria) this;
        }

        public Criteria andExamImageListBetween(String value1, String value2) {
            addCriterion("exam_image_list between", value1, value2, "examImageList");
            return (Criteria) this;
        }

        public Criteria andExamImageListNotBetween(String value1, String value2) {
            addCriterion("exam_image_list not between", value1, value2, "examImageList");
            return (Criteria) this;
        }

        public Criteria andExamEmpIdIsNull() {
            addCriterion("exam_emp_id is null");
            return (Criteria) this;
        }

        public Criteria andExamEmpIdIsNotNull() {
            addCriterion("exam_emp_id is not null");
            return (Criteria) this;
        }

        public Criteria andExamEmpIdEqualTo(Long value) {
            addCriterion("exam_emp_id =", value, "examEmpId");
            return (Criteria) this;
        }

        public Criteria andExamEmpIdNotEqualTo(Long value) {
            addCriterion("exam_emp_id <>", value, "examEmpId");
            return (Criteria) this;
        }

        public Criteria andExamEmpIdGreaterThan(Long value) {
            addCriterion("exam_emp_id >", value, "examEmpId");
            return (Criteria) this;
        }

        public Criteria andExamEmpIdGreaterThanOrEqualTo(Long value) {
            addCriterion("exam_emp_id >=", value, "examEmpId");
            return (Criteria) this;
        }

        public Criteria andExamEmpIdLessThan(Long value) {
            addCriterion("exam_emp_id <", value, "examEmpId");
            return (Criteria) this;
        }

        public Criteria andExamEmpIdLessThanOrEqualTo(Long value) {
            addCriterion("exam_emp_id <=", value, "examEmpId");
            return (Criteria) this;
        }

        public Criteria andExamEmpIdIn(List<Long> values) {
            addCriterion("exam_emp_id in", values, "examEmpId");
            return (Criteria) this;
        }

        public Criteria andExamEmpIdNotIn(List<Long> values) {
            addCriterion("exam_emp_id not in", values, "examEmpId");
            return (Criteria) this;
        }

        public Criteria andExamEmpIdBetween(Long value1, Long value2) {
            addCriterion("exam_emp_id between", value1, value2, "examEmpId");
            return (Criteria) this;
        }

        public Criteria andExamEmpIdNotBetween(Long value1, Long value2) {
            addCriterion("exam_emp_id not between", value1, value2, "examEmpId");
            return (Criteria) this;
        }

        public Criteria andExamEmpNameIsNull() {
            addCriterion("exam_emp_name is null");
            return (Criteria) this;
        }

        public Criteria andExamEmpNameIsNotNull() {
            addCriterion("exam_emp_name is not null");
            return (Criteria) this;
        }

        public Criteria andExamEmpNameEqualTo(String value) {
            addCriterion("exam_emp_name =", value, "examEmpName");
            return (Criteria) this;
        }

        public Criteria andExamEmpNameNotEqualTo(String value) {
            addCriterion("exam_emp_name <>", value, "examEmpName");
            return (Criteria) this;
        }

        public Criteria andExamEmpNameGreaterThan(String value) {
            addCriterion("exam_emp_name >", value, "examEmpName");
            return (Criteria) this;
        }

        public Criteria andExamEmpNameGreaterThanOrEqualTo(String value) {
            addCriterion("exam_emp_name >=", value, "examEmpName");
            return (Criteria) this;
        }

        public Criteria andExamEmpNameLessThan(String value) {
            addCriterion("exam_emp_name <", value, "examEmpName");
            return (Criteria) this;
        }

        public Criteria andExamEmpNameLessThanOrEqualTo(String value) {
            addCriterion("exam_emp_name <=", value, "examEmpName");
            return (Criteria) this;
        }

        public Criteria andExamEmpNameLike(String value) {
            addCriterion("exam_emp_name like", value, "examEmpName");
            return (Criteria) this;
        }

        public Criteria andExamEmpNameNotLike(String value) {
            addCriterion("exam_emp_name not like", value, "examEmpName");
            return (Criteria) this;
        }

        public Criteria andExamEmpNameIn(List<String> values) {
            addCriterion("exam_emp_name in", values, "examEmpName");
            return (Criteria) this;
        }

        public Criteria andExamEmpNameNotIn(List<String> values) {
            addCriterion("exam_emp_name not in", values, "examEmpName");
            return (Criteria) this;
        }

        public Criteria andExamEmpNameBetween(String value1, String value2) {
            addCriterion("exam_emp_name between", value1, value2, "examEmpName");
            return (Criteria) this;
        }

        public Criteria andExamEmpNameNotBetween(String value1, String value2) {
            addCriterion("exam_emp_name not between", value1, value2, "examEmpName");
            return (Criteria) this;
        }

        public Criteria andExamDeptIdIsNull() {
            addCriterion("exam_dept_id is null");
            return (Criteria) this;
        }

        public Criteria andExamDeptIdIsNotNull() {
            addCriterion("exam_dept_id is not null");
            return (Criteria) this;
        }

        public Criteria andExamDeptIdEqualTo(Long value) {
            addCriterion("exam_dept_id =", value, "examDeptId");
            return (Criteria) this;
        }

        public Criteria andExamDeptIdNotEqualTo(Long value) {
            addCriterion("exam_dept_id <>", value, "examDeptId");
            return (Criteria) this;
        }

        public Criteria andExamDeptIdGreaterThan(Long value) {
            addCriterion("exam_dept_id >", value, "examDeptId");
            return (Criteria) this;
        }

        public Criteria andExamDeptIdGreaterThanOrEqualTo(Long value) {
            addCriterion("exam_dept_id >=", value, "examDeptId");
            return (Criteria) this;
        }

        public Criteria andExamDeptIdLessThan(Long value) {
            addCriterion("exam_dept_id <", value, "examDeptId");
            return (Criteria) this;
        }

        public Criteria andExamDeptIdLessThanOrEqualTo(Long value) {
            addCriterion("exam_dept_id <=", value, "examDeptId");
            return (Criteria) this;
        }

        public Criteria andExamDeptIdIn(List<Long> values) {
            addCriterion("exam_dept_id in", values, "examDeptId");
            return (Criteria) this;
        }

        public Criteria andExamDeptIdNotIn(List<Long> values) {
            addCriterion("exam_dept_id not in", values, "examDeptId");
            return (Criteria) this;
        }

        public Criteria andExamDeptIdBetween(Long value1, Long value2) {
            addCriterion("exam_dept_id between", value1, value2, "examDeptId");
            return (Criteria) this;
        }

        public Criteria andExamDeptIdNotBetween(Long value1, Long value2) {
            addCriterion("exam_dept_id not between", value1, value2, "examDeptId");
            return (Criteria) this;
        }

        public Criteria andExamDeptNameIsNull() {
            addCriterion("exam_dept_name is null");
            return (Criteria) this;
        }

        public Criteria andExamDeptNameIsNotNull() {
            addCriterion("exam_dept_name is not null");
            return (Criteria) this;
        }

        public Criteria andExamDeptNameEqualTo(String value) {
            addCriterion("exam_dept_name =", value, "examDeptName");
            return (Criteria) this;
        }

        public Criteria andExamDeptNameNotEqualTo(String value) {
            addCriterion("exam_dept_name <>", value, "examDeptName");
            return (Criteria) this;
        }

        public Criteria andExamDeptNameGreaterThan(String value) {
            addCriterion("exam_dept_name >", value, "examDeptName");
            return (Criteria) this;
        }

        public Criteria andExamDeptNameGreaterThanOrEqualTo(String value) {
            addCriterion("exam_dept_name >=", value, "examDeptName");
            return (Criteria) this;
        }

        public Criteria andExamDeptNameLessThan(String value) {
            addCriterion("exam_dept_name <", value, "examDeptName");
            return (Criteria) this;
        }

        public Criteria andExamDeptNameLessThanOrEqualTo(String value) {
            addCriterion("exam_dept_name <=", value, "examDeptName");
            return (Criteria) this;
        }

        public Criteria andExamDeptNameLike(String value) {
            addCriterion("exam_dept_name like", value, "examDeptName");
            return (Criteria) this;
        }

        public Criteria andExamDeptNameNotLike(String value) {
            addCriterion("exam_dept_name not like", value, "examDeptName");
            return (Criteria) this;
        }

        public Criteria andExamDeptNameIn(List<String> values) {
            addCriterion("exam_dept_name in", values, "examDeptName");
            return (Criteria) this;
        }

        public Criteria andExamDeptNameNotIn(List<String> values) {
            addCriterion("exam_dept_name not in", values, "examDeptName");
            return (Criteria) this;
        }

        public Criteria andExamDeptNameBetween(String value1, String value2) {
            addCriterion("exam_dept_name between", value1, value2, "examDeptName");
            return (Criteria) this;
        }

        public Criteria andExamDeptNameNotBetween(String value1, String value2) {
            addCriterion("exam_dept_name not between", value1, value2, "examDeptName");
            return (Criteria) this;
        }

        public Criteria andExamTimeIsNull() {
            addCriterion("exam_time is null");
            return (Criteria) this;
        }

        public Criteria andExamTimeIsNotNull() {
            addCriterion("exam_time is not null");
            return (Criteria) this;
        }

        public Criteria andExamTimeEqualTo(Date value) {
            addCriterion("exam_time =", value, "examTime");
            return (Criteria) this;
        }

        public Criteria andExamTimeNotEqualTo(Date value) {
            addCriterion("exam_time <>", value, "examTime");
            return (Criteria) this;
        }

        public Criteria andExamTimeGreaterThan(Date value) {
            addCriterion("exam_time >", value, "examTime");
            return (Criteria) this;
        }

        public Criteria andExamTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("exam_time >=", value, "examTime");
            return (Criteria) this;
        }

        public Criteria andExamTimeLessThan(Date value) {
            addCriterion("exam_time <", value, "examTime");
            return (Criteria) this;
        }

        public Criteria andExamTimeLessThanOrEqualTo(Date value) {
            addCriterion("exam_time <=", value, "examTime");
            return (Criteria) this;
        }

        public Criteria andExamTimeIn(List<Date> values) {
            addCriterion("exam_time in", values, "examTime");
            return (Criteria) this;
        }

        public Criteria andExamTimeNotIn(List<Date> values) {
            addCriterion("exam_time not in", values, "examTime");
            return (Criteria) this;
        }

        public Criteria andExamTimeBetween(Date value1, Date value2) {
            addCriterion("exam_time between", value1, value2, "examTime");
            return (Criteria) this;
        }

        public Criteria andExamTimeNotBetween(Date value1, Date value2) {
            addCriterion("exam_time not between", value1, value2, "examTime");
            return (Criteria) this;
        }

        public Criteria andExamStatusIsNull() {
            addCriterion("exam_status is null");
            return (Criteria) this;
        }

        public Criteria andExamStatusIsNotNull() {
            addCriterion("exam_status is not null");
            return (Criteria) this;
        }

        public Criteria andExamStatusEqualTo(String value) {
            addCriterion("exam_status =", value, "examStatus");
            return (Criteria) this;
        }

        public Criteria andExamStatusNotEqualTo(String value) {
            addCriterion("exam_status <>", value, "examStatus");
            return (Criteria) this;
        }

        public Criteria andExamStatusGreaterThan(String value) {
            addCriterion("exam_status >", value, "examStatus");
            return (Criteria) this;
        }

        public Criteria andExamStatusGreaterThanOrEqualTo(String value) {
            addCriterion("exam_status >=", value, "examStatus");
            return (Criteria) this;
        }

        public Criteria andExamStatusLessThan(String value) {
            addCriterion("exam_status <", value, "examStatus");
            return (Criteria) this;
        }

        public Criteria andExamStatusLessThanOrEqualTo(String value) {
            addCriterion("exam_status <=", value, "examStatus");
            return (Criteria) this;
        }

        public Criteria andExamStatusLike(String value) {
            addCriterion("exam_status like", value, "examStatus");
            return (Criteria) this;
        }

        public Criteria andExamStatusNotLike(String value) {
            addCriterion("exam_status not like", value, "examStatus");
            return (Criteria) this;
        }

        public Criteria andExamStatusIn(List<String> values) {
            addCriterion("exam_status in", values, "examStatus");
            return (Criteria) this;
        }

        public Criteria andExamStatusNotIn(List<String> values) {
            addCriterion("exam_status not in", values, "examStatus");
            return (Criteria) this;
        }

        public Criteria andExamStatusBetween(String value1, String value2) {
            addCriterion("exam_status between", value1, value2, "examStatus");
            return (Criteria) this;
        }

        public Criteria andExamStatusNotBetween(String value1, String value2) {
            addCriterion("exam_status not between", value1, value2, "examStatus");
            return (Criteria) this;
        }

        public Criteria andAuditStatusIsNull() {
            addCriterion("audit_status is null");
            return (Criteria) this;
        }

        public Criteria andAuditStatusIsNotNull() {
            addCriterion("audit_status is not null");
            return (Criteria) this;
        }

        public Criteria andAuditStatusEqualTo(String value) {
            addCriterion("audit_status =", value, "auditStatus");
            return (Criteria) this;
        }

        public Criteria andAuditStatusNotEqualTo(String value) {
            addCriterion("audit_status <>", value, "auditStatus");
            return (Criteria) this;
        }

        public Criteria andAuditStatusGreaterThan(String value) {
            addCriterion("audit_status >", value, "auditStatus");
            return (Criteria) this;
        }

        public Criteria andAuditStatusGreaterThanOrEqualTo(String value) {
            addCriterion("audit_status >=", value, "auditStatus");
            return (Criteria) this;
        }

        public Criteria andAuditStatusLessThan(String value) {
            addCriterion("audit_status <", value, "auditStatus");
            return (Criteria) this;
        }

        public Criteria andAuditStatusLessThanOrEqualTo(String value) {
            addCriterion("audit_status <=", value, "auditStatus");
            return (Criteria) this;
        }

        public Criteria andAuditStatusLike(String value) {
            addCriterion("audit_status like", value, "auditStatus");
            return (Criteria) this;
        }

        public Criteria andAuditStatusNotLike(String value) {
            addCriterion("audit_status not like", value, "auditStatus");
            return (Criteria) this;
        }

        public Criteria andAuditStatusIn(List<String> values) {
            addCriterion("audit_status in", values, "auditStatus");
            return (Criteria) this;
        }

        public Criteria andAuditStatusNotIn(List<String> values) {
            addCriterion("audit_status not in", values, "auditStatus");
            return (Criteria) this;
        }

        public Criteria andAuditStatusBetween(String value1, String value2) {
            addCriterion("audit_status between", value1, value2, "auditStatus");
            return (Criteria) this;
        }

        public Criteria andAuditStatusNotBetween(String value1, String value2) {
            addCriterion("audit_status not between", value1, value2, "auditStatus");
            return (Criteria) this;
        }

        public Criteria andAuditUserIdIsNull() {
            addCriterion("audit_user_id is null");
            return (Criteria) this;
        }

        public Criteria andAuditUserIdIsNotNull() {
            addCriterion("audit_user_id is not null");
            return (Criteria) this;
        }

        public Criteria andAuditUserIdEqualTo(Long value) {
            addCriterion("audit_user_id =", value, "auditUserId");
            return (Criteria) this;
        }

        public Criteria andAuditUserIdNotEqualTo(Long value) {
            addCriterion("audit_user_id <>", value, "auditUserId");
            return (Criteria) this;
        }

        public Criteria andAuditUserIdGreaterThan(Long value) {
            addCriterion("audit_user_id >", value, "auditUserId");
            return (Criteria) this;
        }

        public Criteria andAuditUserIdGreaterThanOrEqualTo(Long value) {
            addCriterion("audit_user_id >=", value, "auditUserId");
            return (Criteria) this;
        }

        public Criteria andAuditUserIdLessThan(Long value) {
            addCriterion("audit_user_id <", value, "auditUserId");
            return (Criteria) this;
        }

        public Criteria andAuditUserIdLessThanOrEqualTo(Long value) {
            addCriterion("audit_user_id <=", value, "auditUserId");
            return (Criteria) this;
        }

        public Criteria andAuditUserIdIn(List<Long> values) {
            addCriterion("audit_user_id in", values, "auditUserId");
            return (Criteria) this;
        }

        public Criteria andAuditUserIdNotIn(List<Long> values) {
            addCriterion("audit_user_id not in", values, "auditUserId");
            return (Criteria) this;
        }

        public Criteria andAuditUserIdBetween(Long value1, Long value2) {
            addCriterion("audit_user_id between", value1, value2, "auditUserId");
            return (Criteria) this;
        }

        public Criteria andAuditUserIdNotBetween(Long value1, Long value2) {
            addCriterion("audit_user_id not between", value1, value2, "auditUserId");
            return (Criteria) this;
        }

        public Criteria andAuditByIsNull() {
            addCriterion("audit_by is null");
            return (Criteria) this;
        }

        public Criteria andAuditByIsNotNull() {
            addCriterion("audit_by is not null");
            return (Criteria) this;
        }

        public Criteria andAuditByEqualTo(String value) {
            addCriterion("audit_by =", value, "auditBy");
            return (Criteria) this;
        }

        public Criteria andAuditByNotEqualTo(String value) {
            addCriterion("audit_by <>", value, "auditBy");
            return (Criteria) this;
        }

        public Criteria andAuditByGreaterThan(String value) {
            addCriterion("audit_by >", value, "auditBy");
            return (Criteria) this;
        }

        public Criteria andAuditByGreaterThanOrEqualTo(String value) {
            addCriterion("audit_by >=", value, "auditBy");
            return (Criteria) this;
        }

        public Criteria andAuditByLessThan(String value) {
            addCriterion("audit_by <", value, "auditBy");
            return (Criteria) this;
        }

        public Criteria andAuditByLessThanOrEqualTo(String value) {
            addCriterion("audit_by <=", value, "auditBy");
            return (Criteria) this;
        }

        public Criteria andAuditByLike(String value) {
            addCriterion("audit_by like", value, "auditBy");
            return (Criteria) this;
        }

        public Criteria andAuditByNotLike(String value) {
            addCriterion("audit_by not like", value, "auditBy");
            return (Criteria) this;
        }

        public Criteria andAuditByIn(List<String> values) {
            addCriterion("audit_by in", values, "auditBy");
            return (Criteria) this;
        }

        public Criteria andAuditByNotIn(List<String> values) {
            addCriterion("audit_by not in", values, "auditBy");
            return (Criteria) this;
        }

        public Criteria andAuditByBetween(String value1, String value2) {
            addCriterion("audit_by between", value1, value2, "auditBy");
            return (Criteria) this;
        }

        public Criteria andAuditByNotBetween(String value1, String value2) {
            addCriterion("audit_by not between", value1, value2, "auditBy");
            return (Criteria) this;
        }

        public Criteria andAuditTimeIsNull() {
            addCriterion("audit_time is null");
            return (Criteria) this;
        }

        public Criteria andAuditTimeIsNotNull() {
            addCriterion("audit_time is not null");
            return (Criteria) this;
        }

        public Criteria andAuditTimeEqualTo(Date value) {
            addCriterion("audit_time =", value, "auditTime");
            return (Criteria) this;
        }

        public Criteria andAuditTimeNotEqualTo(Date value) {
            addCriterion("audit_time <>", value, "auditTime");
            return (Criteria) this;
        }

        public Criteria andAuditTimeGreaterThan(Date value) {
            addCriterion("audit_time >", value, "auditTime");
            return (Criteria) this;
        }

        public Criteria andAuditTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("audit_time >=", value, "auditTime");
            return (Criteria) this;
        }

        public Criteria andAuditTimeLessThan(Date value) {
            addCriterion("audit_time <", value, "auditTime");
            return (Criteria) this;
        }

        public Criteria andAuditTimeLessThanOrEqualTo(Date value) {
            addCriterion("audit_time <=", value, "auditTime");
            return (Criteria) this;
        }

        public Criteria andAuditTimeIn(List<Date> values) {
            addCriterion("audit_time in", values, "auditTime");
            return (Criteria) this;
        }

        public Criteria andAuditTimeNotIn(List<Date> values) {
            addCriterion("audit_time not in", values, "auditTime");
            return (Criteria) this;
        }

        public Criteria andAuditTimeBetween(Date value1, Date value2) {
            addCriterion("audit_time between", value1, value2, "auditTime");
            return (Criteria) this;
        }

        public Criteria andAuditTimeNotBetween(Date value1, Date value2) {
            addCriterion("audit_time not between", value1, value2, "auditTime");
            return (Criteria) this;
        }

        public Criteria andRefuseReasonIsNull() {
            addCriterion("refuse_reason is null");
            return (Criteria) this;
        }

        public Criteria andRefuseReasonIsNotNull() {
            addCriterion("refuse_reason is not null");
            return (Criteria) this;
        }

        public Criteria andRefuseReasonEqualTo(String value) {
            addCriterion("refuse_reason =", value, "refuseReason");
            return (Criteria) this;
        }

        public Criteria andRefuseReasonNotEqualTo(String value) {
            addCriterion("refuse_reason <>", value, "refuseReason");
            return (Criteria) this;
        }

        public Criteria andRefuseReasonGreaterThan(String value) {
            addCriterion("refuse_reason >", value, "refuseReason");
            return (Criteria) this;
        }

        public Criteria andRefuseReasonGreaterThanOrEqualTo(String value) {
            addCriterion("refuse_reason >=", value, "refuseReason");
            return (Criteria) this;
        }

        public Criteria andRefuseReasonLessThan(String value) {
            addCriterion("refuse_reason <", value, "refuseReason");
            return (Criteria) this;
        }

        public Criteria andRefuseReasonLessThanOrEqualTo(String value) {
            addCriterion("refuse_reason <=", value, "refuseReason");
            return (Criteria) this;
        }

        public Criteria andRefuseReasonLike(String value) {
            addCriterion("refuse_reason like", value, "refuseReason");
            return (Criteria) this;
        }

        public Criteria andRefuseReasonNotLike(String value) {
            addCriterion("refuse_reason not like", value, "refuseReason");
            return (Criteria) this;
        }

        public Criteria andRefuseReasonIn(List<String> values) {
            addCriterion("refuse_reason in", values, "refuseReason");
            return (Criteria) this;
        }

        public Criteria andRefuseReasonNotIn(List<String> values) {
            addCriterion("refuse_reason not in", values, "refuseReason");
            return (Criteria) this;
        }

        public Criteria andRefuseReasonBetween(String value1, String value2) {
            addCriterion("refuse_reason between", value1, value2, "refuseReason");
            return (Criteria) this;
        }

        public Criteria andRefuseReasonNotBetween(String value1, String value2) {
            addCriterion("refuse_reason not between", value1, value2, "refuseReason");
            return (Criteria) this;
        }

        public Criteria andSortNumIsNull() {
            addCriterion("sort_num is null");
            return (Criteria) this;
        }

        public Criteria andSortNumIsNotNull() {
            addCriterion("sort_num is not null");
            return (Criteria) this;
        }

        public Criteria andSortNumEqualTo(Integer value) {
            addCriterion("sort_num =", value, "sortNum");
            return (Criteria) this;
        }

        public Criteria andSortNumNotEqualTo(Integer value) {
            addCriterion("sort_num <>", value, "sortNum");
            return (Criteria) this;
        }

        public Criteria andSortNumGreaterThan(Integer value) {
            addCriterion("sort_num >", value, "sortNum");
            return (Criteria) this;
        }

        public Criteria andSortNumGreaterThanOrEqualTo(Integer value) {
            addCriterion("sort_num >=", value, "sortNum");
            return (Criteria) this;
        }

        public Criteria andSortNumLessThan(Integer value) {
            addCriterion("sort_num <", value, "sortNum");
            return (Criteria) this;
        }

        public Criteria andSortNumLessThanOrEqualTo(Integer value) {
            addCriterion("sort_num <=", value, "sortNum");
            return (Criteria) this;
        }

        public Criteria andSortNumIn(List<Integer> values) {
            addCriterion("sort_num in", values, "sortNum");
            return (Criteria) this;
        }

        public Criteria andSortNumNotIn(List<Integer> values) {
            addCriterion("sort_num not in", values, "sortNum");
            return (Criteria) this;
        }

        public Criteria andSortNumBetween(Integer value1, Integer value2) {
            addCriterion("sort_num between", value1, value2, "sortNum");
            return (Criteria) this;
        }

        public Criteria andSortNumNotBetween(Integer value1, Integer value2) {
            addCriterion("sort_num not between", value1, value2, "sortNum");
            return (Criteria) this;
        }

        public Criteria andClinicIdIsNull() {
            addCriterion("clinic_id is null");
            return (Criteria) this;
        }

        public Criteria andClinicIdIsNotNull() {
            addCriterion("clinic_id is not null");
            return (Criteria) this;
        }

        public Criteria andClinicIdEqualTo(Long value) {
            addCriterion("clinic_id =", value, "clinicId");
            return (Criteria) this;
        }

        public Criteria andClinicIdNotEqualTo(Long value) {
            addCriterion("clinic_id <>", value, "clinicId");
            return (Criteria) this;
        }

        public Criteria andClinicIdGreaterThan(Long value) {
            addCriterion("clinic_id >", value, "clinicId");
            return (Criteria) this;
        }

        public Criteria andClinicIdGreaterThanOrEqualTo(Long value) {
            addCriterion("clinic_id >=", value, "clinicId");
            return (Criteria) this;
        }

        public Criteria andClinicIdLessThan(Long value) {
            addCriterion("clinic_id <", value, "clinicId");
            return (Criteria) this;
        }

        public Criteria andClinicIdLessThanOrEqualTo(Long value) {
            addCriterion("clinic_id <=", value, "clinicId");
            return (Criteria) this;
        }

        public Criteria andClinicIdIn(List<Long> values) {
            addCriterion("clinic_id in", values, "clinicId");
            return (Criteria) this;
        }

        public Criteria andClinicIdNotIn(List<Long> values) {
            addCriterion("clinic_id not in", values, "clinicId");
            return (Criteria) this;
        }

        public Criteria andClinicIdBetween(Long value1, Long value2) {
            addCriterion("clinic_id between", value1, value2, "clinicId");
            return (Criteria) this;
        }

        public Criteria andClinicIdNotBetween(Long value1, Long value2) {
            addCriterion("clinic_id not between", value1, value2, "clinicId");
            return (Criteria) this;
        }

        public Criteria andIsEnabledIsNull() {
            addCriterion("is_enabled is null");
            return (Criteria) this;
        }

        public Criteria andIsEnabledIsNotNull() {
            addCriterion("is_enabled is not null");
            return (Criteria) this;
        }

        public Criteria andIsEnabledEqualTo(String value) {
            addCriterion("is_enabled =", value, "isEnabled");
            return (Criteria) this;
        }

        public Criteria andIsEnabledNotEqualTo(String value) {
            addCriterion("is_enabled <>", value, "isEnabled");
            return (Criteria) this;
        }

        public Criteria andIsEnabledGreaterThan(String value) {
            addCriterion("is_enabled >", value, "isEnabled");
            return (Criteria) this;
        }

        public Criteria andIsEnabledGreaterThanOrEqualTo(String value) {
            addCriterion("is_enabled >=", value, "isEnabled");
            return (Criteria) this;
        }

        public Criteria andIsEnabledLessThan(String value) {
            addCriterion("is_enabled <", value, "isEnabled");
            return (Criteria) this;
        }

        public Criteria andIsEnabledLessThanOrEqualTo(String value) {
            addCriterion("is_enabled <=", value, "isEnabled");
            return (Criteria) this;
        }

        public Criteria andIsEnabledLike(String value) {
            addCriterion("is_enabled like", value, "isEnabled");
            return (Criteria) this;
        }

        public Criteria andIsEnabledNotLike(String value) {
            addCriterion("is_enabled not like", value, "isEnabled");
            return (Criteria) this;
        }

        public Criteria andIsEnabledIn(List<String> values) {
            addCriterion("is_enabled in", values, "isEnabled");
            return (Criteria) this;
        }

        public Criteria andIsEnabledNotIn(List<String> values) {
            addCriterion("is_enabled not in", values, "isEnabled");
            return (Criteria) this;
        }

        public Criteria andIsEnabledBetween(String value1, String value2) {
            addCriterion("is_enabled between", value1, value2, "isEnabled");
            return (Criteria) this;
        }

        public Criteria andIsEnabledNotBetween(String value1, String value2) {
            addCriterion("is_enabled not between", value1, value2, "isEnabled");
            return (Criteria) this;
        }

        public Criteria andIsDeleteIsNull() {
            addCriterion("is_delete is null");
            return (Criteria) this;
        }

        public Criteria andIsDeleteIsNotNull() {
            addCriterion("is_delete is not null");
            return (Criteria) this;
        }

        public Criteria andIsDeleteEqualTo(String value) {
            addCriterion("is_delete =", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteNotEqualTo(String value) {
            addCriterion("is_delete <>", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteGreaterThan(String value) {
            addCriterion("is_delete >", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteGreaterThanOrEqualTo(String value) {
            addCriterion("is_delete >=", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteLessThan(String value) {
            addCriterion("is_delete <", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteLessThanOrEqualTo(String value) {
            addCriterion("is_delete <=", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteLike(String value) {
            addCriterion("is_delete like", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteNotLike(String value) {
            addCriterion("is_delete not like", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteIn(List<String> values) {
            addCriterion("is_delete in", values, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteNotIn(List<String> values) {
            addCriterion("is_delete not in", values, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteBetween(String value1, String value2) {
            addCriterion("is_delete between", value1, value2, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteNotBetween(String value1, String value2) {
            addCriterion("is_delete not between", value1, value2, "isDelete");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdIsNull() {
            addCriterion("create_user_id is null");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdIsNotNull() {
            addCriterion("create_user_id is not null");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdEqualTo(Long value) {
            addCriterion("create_user_id =", value, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdNotEqualTo(Long value) {
            addCriterion("create_user_id <>", value, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdGreaterThan(Long value) {
            addCriterion("create_user_id >", value, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdGreaterThanOrEqualTo(Long value) {
            addCriterion("create_user_id >=", value, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdLessThan(Long value) {
            addCriterion("create_user_id <", value, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdLessThanOrEqualTo(Long value) {
            addCriterion("create_user_id <=", value, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdIn(List<Long> values) {
            addCriterion("create_user_id in", values, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdNotIn(List<Long> values) {
            addCriterion("create_user_id not in", values, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdBetween(Long value1, Long value2) {
            addCriterion("create_user_id between", value1, value2, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdNotBetween(Long value1, Long value2) {
            addCriterion("create_user_id not between", value1, value2, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateByIsNull() {
            addCriterion("create_by is null");
            return (Criteria) this;
        }

        public Criteria andCreateByIsNotNull() {
            addCriterion("create_by is not null");
            return (Criteria) this;
        }

        public Criteria andCreateByEqualTo(String value) {
            addCriterion("create_by =", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByNotEqualTo(String value) {
            addCriterion("create_by <>", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByGreaterThan(String value) {
            addCriterion("create_by >", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByGreaterThanOrEqualTo(String value) {
            addCriterion("create_by >=", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByLessThan(String value) {
            addCriterion("create_by <", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByLessThanOrEqualTo(String value) {
            addCriterion("create_by <=", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByLike(String value) {
            addCriterion("create_by like", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByNotLike(String value) {
            addCriterion("create_by not like", value, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByIn(List<String> values) {
            addCriterion("create_by in", values, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByNotIn(List<String> values) {
            addCriterion("create_by not in", values, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByBetween(String value1, String value2) {
            addCriterion("create_by between", value1, value2, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateByNotBetween(String value1, String value2) {
            addCriterion("create_by not between", value1, value2, "createBy");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIdIsNull() {
            addCriterion("update_user_id is null");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIdIsNotNull() {
            addCriterion("update_user_id is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIdEqualTo(Long value) {
            addCriterion("update_user_id =", value, "updateUserId");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIdNotEqualTo(Long value) {
            addCriterion("update_user_id <>", value, "updateUserId");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIdGreaterThan(Long value) {
            addCriterion("update_user_id >", value, "updateUserId");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIdGreaterThanOrEqualTo(Long value) {
            addCriterion("update_user_id >=", value, "updateUserId");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIdLessThan(Long value) {
            addCriterion("update_user_id <", value, "updateUserId");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIdLessThanOrEqualTo(Long value) {
            addCriterion("update_user_id <=", value, "updateUserId");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIdIn(List<Long> values) {
            addCriterion("update_user_id in", values, "updateUserId");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIdNotIn(List<Long> values) {
            addCriterion("update_user_id not in", values, "updateUserId");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIdBetween(Long value1, Long value2) {
            addCriterion("update_user_id between", value1, value2, "updateUserId");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIdNotBetween(Long value1, Long value2) {
            addCriterion("update_user_id not between", value1, value2, "updateUserId");
            return (Criteria) this;
        }

        public Criteria andUpdateByIsNull() {
            addCriterion("update_by is null");
            return (Criteria) this;
        }

        public Criteria andUpdateByIsNotNull() {
            addCriterion("update_by is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateByEqualTo(String value) {
            addCriterion("update_by =", value, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByNotEqualTo(String value) {
            addCriterion("update_by <>", value, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByGreaterThan(String value) {
            addCriterion("update_by >", value, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByGreaterThanOrEqualTo(String value) {
            addCriterion("update_by >=", value, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByLessThan(String value) {
            addCriterion("update_by <", value, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByLessThanOrEqualTo(String value) {
            addCriterion("update_by <=", value, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByLike(String value) {
            addCriterion("update_by like", value, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByNotLike(String value) {
            addCriterion("update_by not like", value, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByIn(List<String> values) {
            addCriterion("update_by in", values, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByNotIn(List<String> values) {
            addCriterion("update_by not in", values, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByBetween(String value1, String value2) {
            addCriterion("update_by between", value1, value2, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByNotBetween(String value1, String value2) {
            addCriterion("update_by not between", value1, value2, "updateBy");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andExamDescLikeInsensitive(String value) {
            addCriterion("upper(exam_desc) like", value.toUpperCase(), "examDesc");
            return (Criteria) this;
        }

        public Criteria andDiagnosisFlagLikeInsensitive(String value) {
            addCriterion("upper(diagnosis_flag) like", value.toUpperCase(), "diagnosisFlag");
            return (Criteria) this;
        }

        public Criteria andDiagnosisContentLikeInsensitive(String value) {
            addCriterion("upper(diagnosis_content) like", value.toUpperCase(), "diagnosisContent");
            return (Criteria) this;
        }

        public Criteria andExamImageListLikeInsensitive(String value) {
            addCriterion("upper(exam_image_list) like", value.toUpperCase(), "examImageList");
            return (Criteria) this;
        }

        public Criteria andExamEmpNameLikeInsensitive(String value) {
            addCriterion("upper(exam_emp_name) like", value.toUpperCase(), "examEmpName");
            return (Criteria) this;
        }

        public Criteria andExamDeptNameLikeInsensitive(String value) {
            addCriterion("upper(exam_dept_name) like", value.toUpperCase(), "examDeptName");
            return (Criteria) this;
        }

        public Criteria andExamStatusLikeInsensitive(String value) {
            addCriterion("upper(exam_status) like", value.toUpperCase(), "examStatus");
            return (Criteria) this;
        }

        public Criteria andAuditStatusLikeInsensitive(String value) {
            addCriterion("upper(audit_status) like", value.toUpperCase(), "auditStatus");
            return (Criteria) this;
        }

        public Criteria andAuditByLikeInsensitive(String value) {
            addCriterion("upper(audit_by) like", value.toUpperCase(), "auditBy");
            return (Criteria) this;
        }

        public Criteria andRefuseReasonLikeInsensitive(String value) {
            addCriterion("upper(refuse_reason) like", value.toUpperCase(), "refuseReason");
            return (Criteria) this;
        }

        public Criteria andIsEnabledLikeInsensitive(String value) {
            addCriterion("upper(is_enabled) like", value.toUpperCase(), "isEnabled");
            return (Criteria) this;
        }

        public Criteria andIsDeleteLikeInsensitive(String value) {
            addCriterion("upper(is_delete) like", value.toUpperCase(), "isDelete");
            return (Criteria) this;
        }

        public Criteria andCreateByLikeInsensitive(String value) {
            addCriterion("upper(create_by) like", value.toUpperCase(), "createBy");
            return (Criteria) this;
        }

        public Criteria andUpdateByLikeInsensitive(String value) {
            addCriterion("upper(update_by) like", value.toUpperCase(), "updateBy");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}